package com.yanghs.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yanghs
 * @Description:
 * @date 2018/3/4 16:15
 */
public class ConvertUtil {
    public static String timeFormat(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD HH:mm:ss");
        return sdf.format(date);
    }
}
